package com.sqsxblog.hybrid;

import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.webkit.JsPromptResult;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.Button;

import com.sqsxblog.hybrid.jsinterface.JsinterfaceActivity;
import com.sqsxblog.hybrid.prompt.PromptActivity;
import com.sqsxblog.hybrid.shouldOverrideUrlLoading.ShouldOverrideUrlLoadingActiity;

public class MainActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        findViewById(R.id.jsinterface).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, JsinterfaceActivity.class));
            }
        });
        findViewById(R.id.shouldOverrideUrlLoading).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, ShouldOverrideUrlLoadingActiity.class));
            }
        });
        findViewById(R.id.prompt).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, PromptActivity.class));
            }
        });
    }


}
